<template>
	<el-dialog :title="'打印预览'" v-model="visible" :width="1200" destroy-on-close @closed="$emit('closed')">

	</el-dialog>
</template>

<script>
	import tool from "@/utils/tool";
	export default {
		data() {
			return {
				visible: false,
				entityObj: {
					orderCode: '',
					orderTime: '',
					salesman: '',
					documentsUser: '',
					signUser: '',
					applyOrderCode: '',
					storeName: '',
					receivingOrderItems: []
				},
				orderlist:[]
			}
		},
		methods: {
			//显示=
			open() {
				this.visible = true;
				return this;
			},
			//表单注入数据
			async setData(dataarr) {
				console.log(dataarr)
				try {
					this.orderlist = dataarr
				} catch (error) {
					this.loading = false;
					return false;
				}
			},
		}
	}
</script>

<style>
</style>
